package com.etone.smartAudit.dto.task;

import com.etone.smartAudit.dto.itemSource.DeviceResourceDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/12/17
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "ResourceDeviceTaskDTO", description = "设备租赁表单")
public class ResourceDeviceTaskDTO extends BaseTaskDTO implements Serializable {

    @ApiModelProperty("设备信息")
    @NotNull
    private List<DeviceResourceDTO> deviceResources;

    @ApiModelProperty("申请原因")
    private String cause;
}
